Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
remark-lint-strong-marker
Advanced tools
remark-lint rule to warn when importance (strong) markers violate the given style
Warn for violating importance (strong) markers.
Options: 'consistent'
, '*'
, or '_'
, default: 'consistent'
.
'consistent'
detects the first used importance style and warns when
subsequent importance sequences use different styles.
remark-stringify
formats importance using an *
(asterisk) by default.
Pass
strong: '_'
to use _
(underscore) instead.
See Using remark to fix your Markdown on how to automatically fix warnings for this rule.
This rule is included in the following presets:
Preset | Setting |
---|---|
remark-preset-lint-consistent | 'consistent' |
remark-preset-lint-markdown-style-guide | '*' |
ok.md
**foo** and **bar**.
No messages.
also-ok.md
__foo__ and __bar__.
No messages.
not-ok.md
**foo** and __bar__.
1:13-1:20: Strong should use `*` as a marker
ok.md
When configured with '*'
.
**foo**.
No messages.
ok.md
When configured with '_'
.
__foo__.
No messages.
not-ok.md
When configured with '💩'
.
1:1: Incorrect strong marker `💩`: use either `'consistent'`, `'*'`, or `'_'`
npm:
npm install remark-lint-strong-marker
You probably want to use it on the CLI through a config file:
…
"remarkConfig": {
"plugins": [
…
"lint",
+ "lint-strong-marker",
…
]
}
…
Or use it on the CLI directly
remark -u lint -u lint-strong-marker readme.md
Or use this on the API:
var remark = require('remark')
var report = require('vfile-reporter')
remark()
.use(require('remark-lint'))
+ .use(require('remark-lint-strong-marker'))
.process('_Emphasis_ and **importance**', function (err, file) {
console.error(report(err || file))
})
See contributing.md
in remarkjs/.github
for ways
to get started.
See support.md
for ways to get help.
This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.
FAQs
remark-lint rule to warn when importance (strong) markers violate the given style
The npm package remark-lint-strong-marker receives a total of 94,468 weekly downloads. As such, remark-lint-strong-marker popularity was classified as popular.
We found that remark-lint-strong-marker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.